<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--360浏览器优先以webkit内核解析-->
    <title>零售业务管理平台</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link href="../static/css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet"/>
</head>

<body class="gray-bg">
<!--<div class="white-bg dashboard-header">-->
<!--<blockquote class="text-warning" style="font-size:14px">-->
<!--工作台-->
<!--</blockquote>-->
<!--</div>-->
<div class="wrapper wrapper-content" style="height: 100%">
    <div class="row" style="height: 100%">
        <div class="col-sm-4" style="height: 100%">
            <div class="ibox float-e-margins" style="height: 100%">
                <div class="ibox-title">
                    <span class="label label-success pull-left"
                          style="font-size: medium;">待办任务</span>
                </div>
                <div class="ibox-content">
                    <table width="100%">
                        <tr>
                            <td width="30%">
                                <h2 class="no-margins" style="color: red">待处理任务数 <strong>
                                    [[${mainPageInfo.waitTaskNum}]] </strong></h2>
                            </td>
                        </tr>
                    </table>
                    <div class="stat-percent font-bold text-info">
                        <a th:if="${mainPageInfo.waitTaskNum}>0" href="javascript:void(0);" type="1"
                           onclick="details(this)"><i
                                class="fa fa-list-ul"></i>详情</a>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-info pull-left"
                          style="font-size: medium;">工单处理</span>
                </div>
                <div class="ibox-content">
                    <table width="100%">
                        <tr>
                            <td width="30%">
                                <h2 class="no-margins" style="color: red">待处理工单数 <strong>
                                    [[${mainPageInfo.workOrderNum}]] </strong></h2>
                            </td>
                        </tr>
                    </table>
                    <div class="stat-percent font-bold text-info">
                        <a th:if="${mainPageInfo.workOrderNum}>0" href="javascript:void(0);" type="2"
                           onclick="details(this)"><i
                                class="fa fa-list-ul"></i>详情</a>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-warning pull-left"
                          style="font-size: medium;">申请确认</span>
                </div>
                <div class="ibox-content">
                    <table width="100%">
                        <tr>
                            <td width="30%">
                                <h2 class="no-margins" style="color: red">待确认申请数 <strong>
                                    [[${mainPageInfo.applyNum}]] </strong></h2>
                            </td>
                        </tr>
                    </table>
                    <div class="stat-percent font-bold text-info">
                        <a th:if="${mainPageInfo.applyNum}>0" href="javascript:void(0);" type="3"
                           onclick="details(this)"><i
                                class="fa fa-list-ul"></i>详情</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/ajax/libs/layer/layer.min.js}"></script>
<th:block th:include="include :: footer"/>
<script type="text/javascript">
    function details(obj) {
        var type = $(obj).attr("type");
        var url;
        if (type == 1) {
            url = ctx + "busiflw/waittask";
            $.modal.openTab("待办任务", url);
        } else if (type == 2) {
            url = ctx + "credit/applyInfo/person";
            $.modal.openTab("工单处理", url);
        } else if (type == 3) {
            url = ctx + "credit/applyInfo/person";
            $.modal.openTab("申请确认", url);
        }
    }
</script>
</body>
</html>
